﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200125D RID: 4701
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SubmitEmotionItemCsReq : IMessage<SubmitEmotionItemCsReq>, IMessage, IEquatable<SubmitEmotionItemCsReq>, IDeepCloneable<SubmitEmotionItemCsReq>, IBufferMessage
	{
		// Token: 0x17003BA1 RID: 15265
		// (get) Token: 0x0600D2E1 RID: 53985 RVA: 0x0023840B File Offset: 0x0023660B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SubmitEmotionItemCsReq> Parser
		{
			get
			{
				return SubmitEmotionItemCsReq._parser;
			}
		}

		// Token: 0x17003BA2 RID: 15266
		// (get) Token: 0x0600D2E2 RID: 53986 RVA: 0x00238412 File Offset: 0x00236612
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SubmitEmotionItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003BA3 RID: 15267
		// (get) Token: 0x0600D2E3 RID: 53987 RVA: 0x00238424 File Offset: 0x00236624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SubmitEmotionItemCsReq.Descriptor;
			}
		}

		// Token: 0x0600D2E4 RID: 53988 RVA: 0x0023842B File Offset: 0x0023662B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemCsReq()
		{
		}

		// Token: 0x0600D2E5 RID: 53989 RVA: 0x00238434 File Offset: 0x00236634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemCsReq(SubmitEmotionItemCsReq other) : this()
		{
			this.scriptId_ = other.scriptId_;
			this.eKJNIKMMFLE_ = other.eKJNIKMMFLE_;
			this.itemList_ = ((other.itemList_ != null) ? other.itemList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D2E6 RID: 53990 RVA: 0x0023848C File Offset: 0x0023668C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemCsReq Clone()
		{
			return new SubmitEmotionItemCsReq(this);
		}

		// Token: 0x17003BA4 RID: 15268
		// (get) Token: 0x0600D2E7 RID: 53991 RVA: 0x00238494 File Offset: 0x00236694
		// (set) Token: 0x0600D2E8 RID: 53992 RVA: 0x0023849C File Offset: 0x0023669C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x17003BA5 RID: 15269
		// (get) Token: 0x0600D2E9 RID: 53993 RVA: 0x002384A5 File Offset: 0x002366A5
		// (set) Token: 0x0600D2EA RID: 53994 RVA: 0x002384AD File Offset: 0x002366AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EKJNIKMMFLE
		{
			get
			{
				return this.eKJNIKMMFLE_;
			}
			set
			{
				this.eKJNIKMMFLE_ = value;
			}
		}

		// Token: 0x17003BA6 RID: 15270
		// (get) Token: 0x0600D2EB RID: 53995 RVA: 0x002384B6 File Offset: 0x002366B6
		// (set) Token: 0x0600D2EC RID: 53996 RVA: 0x002384BE File Offset: 0x002366BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ItemList
		{
			get
			{
				return this.itemList_;
			}
			set
			{
				this.itemList_ = value;
			}
		}

		// Token: 0x0600D2ED RID: 53997 RVA: 0x002384C7 File Offset: 0x002366C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SubmitEmotionItemCsReq);
		}

		// Token: 0x0600D2EE RID: 53998 RVA: 0x002384D8 File Offset: 0x002366D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SubmitEmotionItemCsReq other)
		{
			return other != null && (other == this || (this.ScriptId == other.ScriptId && this.EKJNIKMMFLE == other.EKJNIKMMFLE && object.Equals(this.ItemList, other.ItemList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D2EF RID: 53999 RVA: 0x00238538 File Offset: 0x00236738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this.EKJNIKMMFLE != 0U)
			{
				num ^= this.EKJNIKMMFLE.GetHashCode();
			}
			if (this.itemList_ != null)
			{
				num ^= this.ItemList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D2F0 RID: 54000 RVA: 0x002385A6 File Offset: 0x002367A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D2F1 RID: 54001 RVA: 0x002385AE File Offset: 0x002367AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D2F2 RID: 54002 RVA: 0x002385B8 File Offset: 0x002367B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EKJNIKMMFLE != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EKJNIKMMFLE);
			}
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.ScriptId);
			}
			if (this.itemList_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.ItemList);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D2F3 RID: 54003 RVA: 0x00238630 File Offset: 0x00236830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this.EKJNIKMMFLE != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EKJNIKMMFLE);
			}
			if (this.itemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ItemList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D2F4 RID: 54004 RVA: 0x002386A0 File Offset: 0x002368A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SubmitEmotionItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			if (other.EKJNIKMMFLE != 0U)
			{
				this.EKJNIKMMFLE = other.EKJNIKMMFLE;
			}
			if (other.itemList_ != null)
			{
				if (this.itemList_ == null)
				{
					this.ItemList = new ItemList();
				}
				this.ItemList.MergeFrom(other.ItemList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D2F5 RID: 54005 RVA: 0x0023871C File Offset: 0x0023691C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D2F6 RID: 54006 RVA: 0x00238728 File Offset: 0x00236928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.itemList_ == null)
							{
								this.ItemList = new ItemList();
							}
							input.ReadMessage(this.ItemList);
						}
					}
					else
					{
						this.ScriptId = input.ReadUInt32();
					}
				}
				else
				{
					this.EKJNIKMMFLE = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005487 RID: 21639
		private static readonly MessageParser<SubmitEmotionItemCsReq> _parser = new MessageParser<SubmitEmotionItemCsReq>(() => new SubmitEmotionItemCsReq());

		// Token: 0x04005488 RID: 21640
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005489 RID: 21641
		public const int ScriptIdFieldNumber = 10;

		// Token: 0x0400548A RID: 21642
		private uint scriptId_;

		// Token: 0x0400548B RID: 21643
		public const int EKJNIKMMFLEFieldNumber = 9;

		// Token: 0x0400548C RID: 21644
		private uint eKJNIKMMFLE_;

		// Token: 0x0400548D RID: 21645
		public const int ItemListFieldNumber = 13;

		// Token: 0x0400548E RID: 21646
		private ItemList itemList_;
	}
}
